<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>车辆添加</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css">
</head>
<body style="background: transparent;">
    <div class="form-container">
        <h2>车辆添加</h2>

        <form id="vehicleForm" style="display: block;" action="<%=request.getContextPath()%>/Veh/UpdateVehServlet" method="post">
            <input  id="status" name="status" class="form-control" value="可用" HIDDEN="hidden">
            <input type="text" name="id" value="0" hidden="hidden">
            <div class="form-group">
                <label for="licensePlate">车牌号码</label>
                <input type="text" id="licensePlate" name="licensePlate" class="form-control" placeholder="请输入车牌号码" required>
            </div>
            <div class="form-group">
                <label for="model">车辆型号</label>
                <input type="text" id="model" name="model" class="form-control" placeholder="请输入车辆型号" required>
            </div>

            <div class="form-group">
                <label for="currentDriver">当前驾驶员</label>
                <input type="text" id="currentDriver" name="currentDriver" class="form-control" placeholder="请输入当前驾驶员姓名">
            </div>
            <div class="form-group">
                <label for="purchaseDate">购买日期</label>
                <input type="date" id="purchaseDate" name="purchaseDate" class="form-control"  required>
            </div>
                <input type="number" id="totalMileage" name="totalMileage" class="form-control" min="0" hidden="hidden" value="0">
            <div class="form-footer">
                <button type="submit" class="btn">提交</button>
            </div>
        </form>
    </div>
</body>
</html> 